<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 两个外部样式表 -->
    <link rel="stylesheet" href="./index.css">
    <link rel="stylesheet" href="./index2.css">
    <!-- 两个内部样式表 -->
    <style>
        div{
            background-color: pink;
        }
    </style>
    <style>
        div{
            font-size: 24px;
        }
    </style>
</head>
<body>
    <script>
        console.log(document.styleSheets);
        document.styleSheets[0].addRule('div','color:skyblue')
    </script>
    <!-- 两个行内样式 -->
    <div style="padding: 10px;">123</div>
    <div style="margin: 20px;">123</div>
    <div>123</div>
</body>
</html>